package com.gnerv.oauth.mapper;

import com.gnerv.oauth.entity.CustomUserDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    int createPhoneUser(@Param(value = "ukId") String ukId,
                        @Param(value = "number") String number,
                        @Param(value = "code") String code,
                        @Param(value = "name") String name);

    CustomUserDetails selectUserByAccount(@Param(value = "account") String account);

    CustomUserDetails selectUserByNumber(@Param(value = "number") String number);

}
